Skip to content

Fix registration of operation hooks in User model#3014

Merged
bajtos merged 1 commit into
masterfrom
fix/repeated-user-hooks
Dec 9, 2016
Merged

Fix registration of operation hooks in User model#3014
bajtos merged 1 commit into
masterfrom
fix/repeated-user-hooks

Conversation

@bajtos

@bajtos bajtos commented Dec 9, 2016

Copy link
Copy Markdown
Member

Operation hooks are inherited by subclassed models, therefore they must be registered outside of Model.setup() function.

This commit fixes this problem in the built-in User model.

There are not tests verifying this change, as writing a test would be
too cumbersome and not worth the cost IMO.

Related: #2665

cc @loay

Operation hooks are inherited by subclassed models, therefore they must
be registered outside of `Model.setup()` function.

This commit fixes this problem in the built-in User model.

There are not tests verifying this change, as writing a test would be
too cumbersome and not worth the cost IMO.
@bajtos bajtos self-assigned this Dec 9, 2016
@bajtos bajtos added the #review label Dec 9, 2016
@bajtos

bajtos commented Dec 9, 2016

Copy link
Copy Markdown
Member Author

@slnode test please

@bajtos

bajtos commented Dec 9, 2016

Copy link
Copy Markdown
Member Author

https://cis-jenkins.swg-devops.com/job/nb/job/loopback~master/label=x64%20&&%20linux%20&&%20nvm,nodeVersion=4/634/console

curl: (56) GnuTLS recv error (-110): The TLS connection was non-properly terminated.
Binary download from https://nodejs.org/dist/v4.7.0/node-v4.7.0.tar.xz failed, trying source.
grep: /home/jenkins/.nvm/.cache/src/node-v4.7.0/node-v4.7.0.tar.xz: No such file or directory

@rmg should we perhaps setup a local mirror to prevent CI failures like the one above?

@bajtos

bajtos commented Dec 9, 2016

Copy link
Copy Markdown
Member Author

Triggering CI did not fix the problem, I am going to ignore these unrelated failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant